package net.lab1024.sa.admin.module.users.borrow.domain.form;

import io.swagger.v3.oas.annotations.media.Schema;

import java.sql.Timestamp;
import java.time.LocalDate;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * 实训室耗材申请 新建表单
 *
 * @Author 王俊权
 * @Date 2024-11-08 13:31:04
 * @Copyright 🐂🐎bloc
 */

@Data
public class EquipmentBorrowApplicationAddForm {

    @Schema(description = "详细的设备借用理由", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "详细的设备借用理由 不能为空")
    private String borrowReason;

    @Schema(description = "申请人姓名", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "申请人姓名 不能为空")
    private int applicant;

    @Schema(description = "申请班级", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "申请班级 不能为空")
    private String classroom;

    @Schema(description = "借用设备的名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "借用设备的名称 不能为空")
    private String equipmentName;

    @Schema(description = "借用设备的规格型号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "借用设备的规格型号 不能为空")
    private String specificationModel;

//    @Schema(description = "借用设备的数量", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotNull(message = "借用设备的数量 不能为空")
//    //默认1
//    private Integer quantity;
    /**
     * 设备借用开始日期
     */
    @Schema(description = "借用开始时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "借用开始时间不能为空")

    private LocalDate borrowStartDate;

    /**
     * 设备借用结束日期
     */
    @Schema(description = "借用结束时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "借用结束时间不能为空")
    private LocalDate borrowEndDate;

    @Schema(description = "关于设备借用的其他备注信息", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "关于设备借用的其他备注信息 不能为空")
    private String remark;

//    @Schema(description = "指导老师签字信息，可以是图片路径或其他标识", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotBlank(message = "指导老师签字信息，可以是图片路径或其他标识 不能为空")
//    private String guideTeacherSignature;

    @Schema(description = "设备id")
    @NotNull(message = "设备id不能为空")
    private Integer equipmentId;

}